package com.chuangshixinchen.enterprise.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2021-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Tb_user implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String address;

    private Integer age;

    private String avatarUrl;

    private String city;

    private String country;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private String email;

    private String gender;

    private String idCard;

    private String institutionCode;

    private String language;

    private String nickName;

    private String openId;

    @TableField(select = false)
    private String password;

    private String permissions;

    private String phone;

    private String province;

    private String realName;

    private String remark;

    private String secondOpenId;

    private String shortPhone;

    private String unionId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Long enterpriseId;//对应企业Id
    @TableField(exist = false)//只是用来返回时用，不存入数据库
    private String token;


}
